package com.apress.prospringintegration.messageflow.router;

import com.apress.prospringintegration.messageflow.domain.MarketItem;
import org.springframework.integration.annotation.Router;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 * User: wenwei
 * Date: 4/18/11
 * Time: 2:10 PM
 * To change this template use File | Settings | File Templates.
 */
@Component
public class MarketItemTypeRouter {

    @Router
    public String route(MarketItem item) {
        String channelId = item.getType();
        return channelId;
    }
}
